package com.yonyou.pmclouds.plan.processor;

import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.basecom.util.DateUtils;
import com.yonyou.pmclouds.plan.entity.ScheduleItemVO;
import com.yonyou.pmclouds.plan.entity.ScheduleVO;
import com.yonyou.pmclouds.plan.rmiitf.IScheduleItemProcessor;
import com.yonyou.pmclouds.plan.utils.ScheduleDateCalculateUtil;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @Description: 根据子级节点推算父级节点时间
 * @Author: zhangzhonghao
 * @Date: 2020-03-06
 */

@Component
public class ScheduleItemSetParentPlanDateProcessor implements IScheduleItemProcessor {

    @Override
    public void process(ScheduleVO scheduleVO, ScheduleItemVO rootParentItemVO, ScheduleItemVO parentItemVO,
                        ScheduleItemVO childItemVO) throws BusinessException {
        ScheduleDateCalculateUtil.calculateParentPlanDate(childItemVO);
    }


}
